package com.proxy.staticproxy;

import com.proxy.target.Target;

/**
 * @Classname ProxyStaticTarget
 * @Description TODO
 * @Date 2021/8/23 23:57
 * @Created by 张斌
 */
public class ProxyStaticTarget implements Target {

    private Target target;

    public ProxyStaticTarget(Target target) {
        this.target = target;
    }


    @Override
    public void targetMethod() {
        System.out.println("proxy start");
        target.targetMethod();
        System.out.println("proxy end");
    }
}
